import request from "libs/request";

export function getphysical() {
  return request.get('/api/v1/locker/physical-zones?current=1&pageSize=50');
}




export function GetlockTypes() {
  return request.get('/api/v1/locker/locker-lock-types?current=1&pageSize=50');
}



export function GetlockersProduct() {
  return request.get('/api/v1/locker/locker-product-classes?current=1&pageSize=50');
}

export function GetAreas() {
  return request.get('/api/v1/locker/management-areas?current=1&pageSize=50');
}


export function GetlockersUser() {
  return request.get('/api/v1/locker/locker-user-types?current=1&pageSize=50');
}


export function Specifications() {
  return request.get('/api/v1/locker/locker-specifications?current=1&pageSize=50');
}


export function Batch(data) {
  return request.post('/api/v1/locker/lockers/batch', data);
}


export function GetlockersList(params) {
  console.log(params);
  return request({ url: '/api/v1/locker/lockers', params });
}


export function Del_One(id) {

  return request({ url: '/api/v1/locker/lockers/' + id, method: 'delete' });
}

export function Del_Batch(ids) {
  return request({ url: '/api/v1/locker/lockers/batch', method: 'delete', data: ids });
}

export function fastSend(type, lock) {
  return request({ url: '/api/v1/locker/lockers/type/' + type + "/number/" + lock, });
}